package main;

import java.util.ArrayList;

import model.Ticket;

/**
 * Simulates a printer printing out the ticket
 * @author Anders
 */
public class Printer 
{
	public Printer() 
	{
		
	}
	
	public void print(Ticket t)
	{
		System.out.println("Ticket # " + t.getId());
		System.out.println("********************");
		System.out.println(t.getShowTime().getMovie().getTitle() + "\n");
		System.out.println("Cinema: " + t.getSeat().getCinema());
		System.out.println("Row: " + t.getSeat().getRow());
		System.out.println("Number: " + t.getSeat().getNumber());
		System.out.println("******************** \n \n");
	}
	
	public void print(ArrayList<Ticket> allTickets)
	{
		for(Ticket t : allTickets) {
			print(t);
		}
	}
}
